//路由配置
import { createMemoryHistory, createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router'
import HomePage from '@/views/HomePage.vue'
import RegisterUser from '@/views/RegisterUser.vue'
import ProfilePage from '@/views/ProfilePage.vue'
import MessagePage from '@/views/MessagePage.vue'
import RegisterPage from '@/views/RegisterPage.vue'
import ForgetPassword from '@/views/ForgetPassword.vue'

const routes = [
    {
        name: 'HomePage',
        path: '/',
        component: HomePage
    },
    {
        name: 'RegisterUser',
        path: '/RegisterUser',
        component: RegisterUser
    },
    {
        name: 'ProfilePage',
        path: '/ProfilePage',
        component: ProfilePage
    },
    {
        name: 'MessagePage',
        path: '/MessagePage',
        component: MessagePage
    },
    {
        name: 'RegisterPage',
        path: '/RegisterPage',
        component: RegisterPage
    },
    {
        name: 'ForgetPassword',
        path: '/ForgetPassword',
        component: ForgetPassword
    }
]
const router = createRouter({
    history: createMemoryHistory(),
    routes,
});
export default router